import request from "./http";

// 详情页数据
// http://api.17k.com/book/3381946/split1/merge?_versions=1310&appKey=4037465544
export function getdetails(emid) {
    // console.log(emid);
    return request({
        url: `/book/${emid}/split1/merge?_versions=1310&appKey=4037465544`,
        method: "get",
    })
}




// http://api.17k.com/book/3381946/split2/merge?_versions=1310&appKey=4037465544

export function getcomment(emid) {
    return request({
        url: `/book/${emid}/split2/merge?_versions=1310&appKey=4037465544`,
        method: "get",
    })
}

// http://api.17k.com/book/3328785/volumes?appKey=4037465544
export function getcatalogue(emid) {
    return request({
        url: `/book/${emid}/volumes?appKey=4037465544`,
        method: "get",
    })
}

// http://api.17k.com/sns/thread/125006877 ?groupId=3424153&appKey=4037465544
// 展开评论详情
export function getRepliesData(emid, groupId) {
    return request({
         url: `/sns/thread/${emid}?groupId=${groupId}&appKey=4037465544`,
        method: "get",
    })
}

// export function getReplies(emid) {
//     return request({
//         url: `/sns/thread/${emid}&?groupId=${emid}&appKey=4037465544`,
//         method: "get",
//     })
// }